

var httpStatus = {
	HTTP_STATUS_ZERO: 0,
    HTTP_STATUS_SUCCESS_OK: 200,
    HTTP_STATUS_SUCCESS_NO_CONTENT: 204,
    HTTP_STATUS_SUCCESS_PARTIAL_CONTENT: 206,
    HTTP_STATUS_CLIENT_ERROR_REQUEST_TIMEOUT: 408
};

var kGADownloadStatus = {
	DOWNLOAD_PENDING : 0,
    DOWNLOAD_START : 1,
    DOWNLOAD_COMPLETE : 2,
    DOWNLOAD_FAIL : -1
};

//Enumeration to get the ReponseType
var kGAStatusType = {
    //General Status Message
    kGAStatusOk: 1,
    kGADelegateNil: 2,
    kGAURLNil: 3,
    kGAURLInvalid: 4,
    kGADBFileNotExists: 25,
    kGAAudioFileNotExits: 26,

    //Web Fetcher and Downloader Responses
    kGAResponseInvalidURLString: 50,
    kGAResponseFailure: 51,
    kGAResponseStatusNotOK: 52,
    kGAResponseNoDataFromServer: 53,
    kGAResponseTimeout: 54,
    kGAResponseUnknownLength: 55,
    kGAResponseNotAllDataDownloaded: 56,

    kGAFileCreateError: 60,
    kGAFileReplaceError: 61,
    kGAFileDeleteError: 62,
    kGAFileCopyError: 63,

    kGAResourceDownloadingFailed: 64,
    kGADownloadedFileAuthenticationFailed: 70,

    //Zip Unzip Status Codes
    kGAZipExtractionFailedWithUnknownException: 101,
    kGAZipSourceFileNotValid: 102,
    kGAZipInavlidSavePath: 103,
    kGAZipInvalidSourcePath: 104,
    kGAZipFolderCreateError: 105,
    kGAZipFileCreateError: 106,
    kGAZipInvalidContentFile: 107,

    //Game Store Status Codes
    kGAGameStoreInvalidSavePath: 200,
    kGAGameLoadConnectParseFailed: 201,
    kGAGameLoadConnectAuthFailed: 202,
    kGAGameLoadStoreUpdateFailed: 203,
    kGAGameLoadStoreParseFailed: 204,
    kGAGameLoadConnectXMLNotFound: 205,

    //in-App Purchase Constants
    kGAErrorNoCode: 301,
    kGAErrorUnknown: 302,
    kGAErrorClientInvalid: 303,
    // client is not allowed to issue the request, etc.
    kGAErrorPaymentCancelled: 304,
    // user cancelled the request, etc.
    kGAErrorPaymentInvalid: 305,
    // purchase identifier was invalid, etc.
    kGAErrorPaymentNotAllowed: 306,
    // this device is not allowed to make the payment
    kGAErrorNoInternet: 307,
    kGAErrorStoreKitTimeout: 308,

    kGAStoreObjectNil: 400,
    kGAResourceObjectNil: 401,

    kGADZDazzleNotInitialized: 501,
    kGADZLoggingParameterInvalid: 502,
    kGADZLoggingParameterMissing: 503,
    kGADZLoggingInternalError: 504
};
var kGAGameState = {
	kLastModifiedTime: "lastModifiedTime",
	kLastSavedXp: "lastSaveXp",
	kTimeOut: 600
};
var kGARequestType = {
    kGARequestGet: 1,
    kGARequestPOST: 2,
    kGAUdid: 3,
    kGAUserKey: 4
};


var kGAGameLoadLevel = {
	kGAGameLoadLevelStart : 0,
	kGAGameLoadLevelConnectDone : 1,
	kGAGameLoadLevelStoreVersionsDone : 2,
	kGAGameLoadLevelStoreParsingDone : 3
};

 var kGAInternalStoreState = {
	kGAInternalStoreStateInitial : 0,
	kGAInternalStoreConfigured : 1,
	kGAInternalStoreStateInProgress : 2,
	kGAInternalStoreStateCompleted : 3,
	kGAInternalStoreStateFailed : 4,
	kGAInternalStoreStateCritical : 5
	
};
 var kGADazzle = {
	kGAPendingLog : 0,
	kGAInProgressLog : 1,
	kGALoggingThreshold : 20,
	kGALoggingCount : "loggingCount"
 };

var GADazzleOfferType = {
	InAppPurschase : 1,
	LevelUp : 2
};

var GADazzleEventType = {
	Registration : 1,
	Connect : 2,
	NewDeviceRegistration : 3
};

var GADazzleLoggingType = {
	NoLogging : 0,
	CountThreshold : 1,
	TimeThreshold : 2,
	BothCountAndTimeThreshold : 3,
	Immediate : 4,
	OnApplicationTermination : 5
};

 var LOG_LEVEL = {
			LOG_ALL : 6,
			LOG_VERBOSE : 5,
			LOG_DEBUG : 4,
			LOG_NONFATAL_ERROR : 3,
			LOG_EXCEPTION : 2,
			LOG_FATAL : 1,
			LOG_SILENT : 0
		};


var kGADeviceType = {
    kGADeviceTypeUnknown: 0,
    kGADeviceTypeIphone: 1,
    kGADeviceTypeIpad: 2,
    kGADeviceTypeIpodTouch: 3
};

var aspectRatioFactor = {
    x: 320,
    y: 480,
    d: 3.67
};

var TextAlignment = {
	kAlignLeft 	: 0,
	kAlignRight	: 1,
	kAlignTop  	: 2,
	kAlignBottom: 3,
	kAlignCenter: 4
};

var GAResourceType = {
	kThumb 	: "thumb",
	kDetail	: "default_zip"
};

var GAInAppPurchase = {
	noButton : -2,
	noFunds : -1,
	badServer : 401,
	noItem: 404,
	serverError: 500,
	miscError: 666
};

var GAInAppPurchaseCurrencyType = {
	kBucks : "bucks",
	kCoins : "coins"
};

var GA_UDID_PARAM_KEY				= "udid"
var GA_DEVICE_TYPE_PARAM_KEY		= "devicetype"
var GA_DEVICE_OS_PARAM_KEY			= "OS"
var GA_GAME_VERSION_PARAM_KEY		= "GV"
var GA_GAME_NAME_PARAM_KEY			= "game"
var GA_DEVICE_GENERATION_PARAM_KEY	= "deviceGen"
var GA_USER_LEVEL_PARAM_KEY			= "level"

var GAINAPP_AUTHENTICATION_KEY = "~O!l@y#m$p%i^c&s*S(o)c_c+e{r}W:o<r>l?d~C!u@p#H$o%c^k&e*y(C)h_a+m{p}:i<o>n?s~h!i@p#2$G%B^R&a*m(C)o_r+e{i}3:R<s>5?5~0!0@0#";


	var ObjectState = {
	    ObjectPlacement: 0,
	    ObjectUnderConstruction: 1,
	    ObjectIdle: 2,
	    ObjectDirty: 3,
	    ObjectReady: 4,
	    ObjectInProgress: 5,
	    ObjectMovement: 6,
	    ObjectExpire: 7
	};
	var TransactionType = {
			TransactionBuy: 0,
			TransactionSell: 1
		};
var ActionType = {
    ActionArrow: 0,
    ActionMove: 1
};

var progressScreenDelay = 1000;
var splashScreenDelay = 1000;
var COMPLETED_TXN_KEY = "COMPLETED_TXNS";
var DOWNLOADED_RESOURCES = "DOWNLOADED_RESOURCES";

var ZoomType = {
    ZoomIn : 0,
    ZoomOut : 1
};
var kGANeigborVisitMode = false;

var kGAResourceSyncMaxRetryCount = 2;
var kGAResourceSyncTimeout = 30;